/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn;

import cn.webrx.App;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;

import java.util.Arrays;

/**
 * <p>Project: redis2021 - BootDemo
 * <p>Powered by webrx On 2021-12-10 13:34:46
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@SpringBootTest(classes = App.class)
public class BootDemo {
    @Autowired
    private ApplicationContext context;

    @Test
    public void t1() {
        System.out.println("hello world " + SpringBootVersion.getVersion());
        System.out.println(context.getBeanDefinitionCount());
        System.out.println(Arrays.toString(context.getBeanDefinitionNames()));
    }
}
